{{extend "group_layout.html"}}


{{block group_menu}}
{{include "group_menu.html"}}
{{group_menu(group.name, current="dashboard")}}
{{end}}


{{block group_content}}
{{end}}

{{block group_sidebar}}
<div class="box">
    <h2>Group Statistics</h2>
    <div class="box-body">
        <ul class="common-list">
            <li><span>Members Count:</span> <strong>{{=group.members_count}}</strong></li>
        </ul>
    </div>
</div>
<div class="box">
    <h2>Managers</h2>
    <div class="box-body clearfix">
        {{for user in group.managers.all():}}
        <div class="portrait">
        <img src="{{=user.get_image_url()}}" class="user"/>
        <span>{{=user.username}}</span>
        </div>
        {{pass}}
    </div>
</div>
<div class="box">
    <h2>Members</h2>
    <div class="box-body clearfix">
        {{for user in group.members.all():}}
        <div class="portrait">
        <img src="{{=user.get_image_url()}}" class="user"/><br/>
        <span>{{=user.username}}</span>
        </div>
        {{pass}}
    </div>
    <div class="clearfix"></div>
</div>
{{end}}